package com.example.cityclient.controller;


import com.example.citycommon.pojo.City;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class CityController {
    @RequestMapping("/getCityList")
    public List<City> list(){
        List<City> cityList = new ArrayList<>();

        cityList.add(new City("101010100","北京"));
        cityList.add(new City("101020100","上海"));
        cityList.add(new City("101280101","广州"));
        cityList.add(new City("101280601","深圳"));

        return cityList;


    }

}
